#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2022/11/9 10:30
# @Author  : 招财大龙猫
# @File    : btc_info.py
# @Description : 获取btc对usd数据
########## GEMINI 行情接口 ##########
## https://api.gemini.com/v1/pubticker/:symbol

import json
import requests

gemini_ticker = 'https://api.gemini.com/v1/pubticker/{}'
symbol = 'btcusd'
btc_data = requests.get(gemini_ticker.format(symbol)).json()
print(json.dumps(btc_data, indent=4))

########## 输出 ##########
